package com.ailk.bi.cq.cqbiaudit.AuditReportInquires.services

import groovy.util.logging.Slf4j;
import groovy.xml.MarkupBuilder

import org.springframework.stereotype.Service;

import com.ailk.bi.cq.cqbiaudit.vo.ResultVO;

@Slf4j
@Service
class AuditReportInquiresService {
	ResultVO getInquiresData(){
		def writer = new StringWriter()
		def xml = new MarkupBuilder(writer)
		xml.result(){
			data(name:"报告1",time:"2012-3-11",unit:"人力资源部",borwse:"image")
			data(name:"报告2",time:"2012-3-12",unit:"人力资源部",borwse:"image")
			data(name:"报告3",time:"2012-3-13",unit:"人力资源部",borwse:"image")
			data(name:"报告4",time:"2012-3-14",unit:"人力资源部",borwse:"image")
			
		}
		ResultVO result = new ResultVO(xmlString:writer.toString(), success:true)
		log.info("" + result)
		result
	}
}

